package com.joe.test_mybatis_plus.entity;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

@Data
@ExcelIgnoreUnannotated
@ContentRowHeight(20)
@HeadRowHeight(35)
@ColumnWidth(25)
public class ExcelUser {
    @ExcelProperty(value = {"ID"})
    private Long id;
    @ExcelProperty(value = {"姓名"})
    private String name;
    @ExcelProperty(value = {"年龄"})
    private Integer age;
    @ExcelProperty(value = {"手机号"})
    private String phone;

    public ExcelUser() {
    }

    public ExcelUser(Long id, String name, Integer age, String phone) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.phone = phone;
    }
}
